google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-24',144793,null,null,null,null], ['2024-02-25',144874,null,null,null,null], ['2024-02-26',144874,null,null,null,null], ['2024-02-27',144902,null,null,null,null], ['2024-02-28',145130,null,null,null,null], ['2024-02-29',145254,null,null,null,null], ['2024-03-01',145439,null,null,null,null], ['2024-03-02',145598,null,null,null,null], ['2024-03-03',145784,null,null,null,null], ['2024-03-04',145982,null,null,null,null], ['2024-03-05',146204,null,null,null,null], ['2024-03-06',146384,null,null,null,null], ['2024-03-07',146552,null,null,null,null], ['2024-03-08',146849,null,null,null,null], ['2024-03-09',147126,null,null,null,null], ['2024-03-10',147306,null,null,null,null], ['2024-03-11',147544,null,null,null,null], ['2024-03-12',147860,null,null,null,null], ['2024-03-13',147928,null,null,null,null], ['2024-03-14',147977,null,null,null,null], ['2024-03-15',147977,null,null,null,null], ['2024-03-16',147977,null,null,null,null], ['2024-03-17',148038,null,null,null,null], ['2024-03-18',148098,null,null,null,null], ['2024-03-19',148157,null,null,null,null], ['2024-03-20',148203,null,null,null,null], ['2024-03-21',148246,null,null,null,null], ['2024-03-22',148309,null,null,null,null], ['2024-03-23',148337,null,null,null,null], ['2024-03-24',148382,null,null,null,null], ['2024-03-25',148417,null,null,null,null], ['2024-03-26',148469,null,null,null,null], ['2024-03-27',148506,null,null,null,null], ['2024-03-28',148556,null,null,null,null], ['2024-03-29',148608,null,null,null,null], ['2024-03-30',148608,null,null,null,null], ['2024-03-31',148608,null,null,null,null], ['2024-04-01',148608,null,null,null,null], ['2024-04-02',148840,null,null,null,null], ['2024-04-03',148876,null,null,null,null], ['2024-04-04',148914,null,null,null,null], ['2024-04-05',148959,null,null,null,null], ['2024-04-06',149005,null,null,null,null], ['2024-04-07',149005,null,null,null,null], ['2024-04-08',149064,null,null,null,null], ['2024-04-09',149105,null,null,null,null], ['2024-04-10',149248,null,null,null,null], ['2024-04-11',149394,null,null,null,null], ['2024-04-12',149513,null,null,null,null], ['2024-04-13',149618,null,null,null,null], ['2024-04-14',149761,null,null,null,null], ['2024-04-15',149910,null,null,null,null], ['2024-04-16',150004,null,null,null,null], ['2024-04-17',150115,null,null,null,null], ['2024-04-18',150302,null,null,null,null], ['2024-04-19',150302,null,null,null,null], ['2024-04-20',150416,null,null,null,null], ['2024-04-21',150502,null,null,null,null], ['2024-04-22',150739,null,null,null,null], ['2024-04-23',150894,null,null,null,null], ['2024-04-24',150978,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });